import yaml
from pprint import pprint

with open("config.yaml", encoding='utf-8') as f:
    info = yaml.load(f, Loader=yaml.FullLoader)

pprint(info)
print(type(info))
"""
结果：
{'email': {'password': 'ASGCSFSGS', 'user': '123456.com'}}
<class 'dict'>

---->
1.load需要传入两个参数，stream和Loader
2.yaml没有loads方法
"""
